int Button1=7;
int Button2=13;

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  pinMode(Button1,INPUT);
  pinMode(Button2,INPUT);
}

int a=0;
int b=0;
void loop() {
  // put your main code here, to run repeatedly:
  if(a!=digitalRead(Button1))
  {
    a=digitalRead(Button1);
    if(a==0)Serial.println("1");
    else Serial.println("0");
  }
  if(b!=digitalRead(Button2))
  {
    b=digitalRead(Button2);
    if(b==0)Serial.println("3");
    else Serial.println("2");
  }
}
